package com.bootdo.wx.service.impl;

import com.bootdo.wx.dao.SalesCouponBagsDao;
import com.bootdo.wx.domain.SalesCouponBagsDO;
import com.bootdo.wx.service.SalesCouponBagsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;



@Service
public class SalesCouponBagsServiceImpl implements SalesCouponBagsService {
	@Autowired
	private SalesCouponBagsDao salesCouponBagsDao;
	
	@Override
	public SalesCouponBagsDO get(String id){
		return salesCouponBagsDao.get(id);
	}
	
	@Override
	public List<SalesCouponBagsDO> list(Map<String, Object> map){
		return salesCouponBagsDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return salesCouponBagsDao.count(map);
	}
	
	@Override
	public int save(SalesCouponBagsDO salesCouponBags){
		return salesCouponBagsDao.save(salesCouponBags);
	}
	
	@Override
	public int update(SalesCouponBagsDO salesCouponBags){
		return salesCouponBagsDao.update(salesCouponBags);
	}
	
	@Override
	public int remove(String id){
		return salesCouponBagsDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return salesCouponBagsDao.batchRemove(ids);
	}

    @Override
    public List<SalesCouponBagsDO> likeList(Map<String, Object> map){
        return salesCouponBagsDao.likeList(map);
    }

    @Override
    public List<SalesCouponBagsDO> getBagS() {
		Map<String, Object> map = new HashMap<>();
		map.put("delFlag", "0");
		List<SalesCouponBagsDO> list = salesCouponBagsDao.list(map);
		return list;


    }

}
